package net.fornwall.eclipsecoder.csharpsupport;

import net.fornwall.eclipsecoder.stats.CodeGenerator;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

public class CSharpPreferenceInitializer extends AbstractPreferenceInitializer {

	public static final String DEFAULT_CODE_TEMPLATE = "using System;\nusing System.Collections;\n\n" + "public class "
			+ CodeGenerator.TAG_CLASSNAME + " {\n" + "\n" + "\tpublic " + CodeGenerator.TAG_RETURNTYPE + " "
			+ CodeGenerator.TAG_METHODNAME + "(" + CodeGenerator.TAG_METHODPARAMS + ") {\n" + "\t\treturn "
			+ CodeGenerator.TAG_DUMMYRETURN + ";\n" + "\t}\n" + "\n" + "}\n";

	@Override
	public void initializeDefaultPreferences() {
		IPreferenceStore store = CSharpSupportPlugIn.getInstance().getPreferenceStore();
		store.setDefault(CSharpSupportPlugIn.CODE_TEMPLATE_PREFERENCE, DEFAULT_CODE_TEMPLATE);
		store.setDefault(CSharpSupportPlugIn.BUILD_SYSTEM_PREFERENCE, "ant");
	}

}
